package FurnitureFactory

func FurnitureFactory(furnitureName string, styleName string) *Furniture {
	var f Furniture
	f.IStyle = StyleFactory(styleName)
	if furnitureName == "Table" {
		f.IFurniture = &Table{}
	} else if furnitureName == "Sofa" {
		f.IFurniture = &Sofa{}
	} else if furnitureName == "Chair" {
		f.IFurniture = &Chair{}
	} else {
		f.IFurniture = nil
	}
	return &f
}
